package com.hutao.manage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hutao.manage.pojo.Stdhospitalmanzy;
import com.hutao.manage.pojo.StdhospitalmanzyExample;
import com.hutao.manage.pojo.StdhospitalmanzyWithBLOBs;

public interface StdhospitalmanzyMapper {
    /**
     *
     * @代码生成于 2020-06-12
     */
    int countByExample(StdhospitalmanzyExample example);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int deleteByExample(StdhospitalmanzyExample example);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int insert(StdhospitalmanzyWithBLOBs record);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int insertSelective(StdhospitalmanzyWithBLOBs record);

    /**
     *
     * @代码生成于 2020-06-12
     */
    List<StdhospitalmanzyWithBLOBs> selectByExampleWithBLOBs(StdhospitalmanzyExample example);

    /**
     *
     * @代码生成于 2020-06-12
     */
    List<Stdhospitalmanzy> selectByExample(StdhospitalmanzyExample example);

    /**
     *
     * @代码生成于 2020-06-12
     */
    StdhospitalmanzyWithBLOBs selectByPrimaryKey(Long id);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int updateByExampleSelective(@Param("record") StdhospitalmanzyWithBLOBs record, @Param("example") StdhospitalmanzyExample example);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int updateByExampleWithBLOBs(@Param("record") StdhospitalmanzyWithBLOBs record, @Param("example") StdhospitalmanzyExample example);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int updateByExample(@Param("record") Stdhospitalmanzy record, @Param("example") StdhospitalmanzyExample example);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int updateByPrimaryKeySelective(StdhospitalmanzyWithBLOBs record);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int updateByPrimaryKeyWithBLOBs(StdhospitalmanzyWithBLOBs record);

    /**
     *
     * @代码生成于 2020-06-12
     */
    int updateByPrimaryKey(Stdhospitalmanzy record);
    
    
    
    List<Stdhospitalmanzy> selectByJobNumber(String jobNumber);
    
    int updateSwitchCodeJByPrimaryKey(@Param("id")long id,@Param("switchCodeJ")String switchCodeJ);
    
    
    String getManOfficeCodeById(@Param("id") long id);
    
    List<Map<String,Object>> getNoHisIdList();
    
}